package com.it.myd.bean.box.game;

import com.it.myd.bean.box.UserGameInfo;

import java.text.SimpleDateFormat;
import java.util.List;

public class Room {

    private String room_id;
    private String user_ids;
    private String winuser_ids;
    private String type;
    private List<UserGameInfo> players;
    private String state;
    private String result;
    public Room(){
        SimpleDateFormat sdf= new SimpleDateFormat("yyMMddHHmmss");
        String id = "room_"+sdf.format(System.currentTimeMillis());
        this.room_id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUser_ids() {
        return user_ids;
    }

    public void setUser_ids(String user_ids) {
        this.user_ids = user_ids;
    }

    public String getWinuser_ids() {
        return winuser_ids;
    }

    public void setWinuser_ids(String winuser_ids) {
        this.winuser_ids = winuser_ids;
    }

    public String getRoom_id() {
        return room_id;
    }

    public void setRoom_id(String room_id) {
        this.room_id = room_id;
    }

    public List<UserGameInfo> getPlayers() {
        return players;
    }

    public void setPlayers(List<UserGameInfo> players) {
        this.players = players;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
